package com.hqyj.dao;

import com.hqyj.pojo.DayInfo;
import com.hqyj.pojo.UserInfo;
import org.apache.ibatis.annotations.*;

import java.util.List;
@Mapper
public interface DayInfoDao {
    @Select("select * from dayInfo where dayManager=#{dayManager}")
    List<DayInfo> selectUserSer(DayInfo day);

    //标记完成
    @Delete("update dayInfo set dayFinish='是' where dayId=#{dayId}")
    int tag(DayInfo day);

    //删除
    @Delete("delete from dayInfo where dayId=#{dayId}")
    int del(DayInfo day);

    //新增
    @Insert("insert into dayInfo (dayText,dayTime,dayUserName,dayManager,dayFinish) " +
            "value (#{dayText},#{dayTime},#{dayUserName},#{dayManager},#{dayFinish})")
    int dailyAdd(DayInfo day);
}
